/*
 * config.h
 *
 *  Created on: 19 mai 2013
 *      Author: fennec
 */

#ifndef CONFIG_H_
#define CONFIG_H_

//Definition des notes
#define BL 0
#define DO 2505
#define RE 2232
#define MI 1988
#define FA 1877
#define SOL 1673
#define LA 1489
#define SI 1326
#define DO2 1253
#define RE2 1116
#define MI2 994
#define FA2 939
#define SOL2 837
#define LA2 745
#define SI2 663
#define DO3 627

//Pin map
#define Motor1 BIT0
#define Motor2 BIT1
#define InputIR BIT4
#define LED1 BIT6
#define LED2 BIT7
#define Speaker BIT2

// Macro
#define Motor1_ON P1OUT|=Motor1
#define Motor1_OFF P1OUT&=~Motor1
#define Motor2_ON P1OUT|=Motor2
#define Motor2_OFF P1OUT&=~Motor2
#define LED1_ON P1OUT|=LED1
#define LED1_OFF P1OUT&=~LED1
#define LED2_ON P1OUT|=LED2
#define LED2_OFF P1OUT&=~LED2

//Instructions IR (Samsung)
#define UP 0xAFCE
#define DOWN 0x91CE
#define RIGHT 0xAA4E
#define LEFT 0xAE4E
#define BTN1 0xEC10
#define BTN1_BIS 0xF608

#endif /* CONFIG_H_ */
